package com.dkm.orproject.dkmoa.dao;

import com.dkm.orproject.dkmoa.domain.OaContracType;
import com.dkm.orproject.dkmoa.domain.OaDataDictionary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName : OaDataDictionary  //类名
 * @Description : 数据字典dao  //描述
 * @Author : 易嵘  //作者
 * @Date: 2020-08-05 11:29  //时间
 */
@Mapper
public interface OaDataDictionaryMapper {
    int deleteByPrimaryKey(Long pkDataDictionaryId);

    int insert(OaDataDictionary record);

    int insertSelective(OaDataDictionary record);

    OaDataDictionary selectByPrimaryKey(Long pkDataDictionaryId);

    int updateByPrimaryKeySelective(OaDataDictionary record);

    int updateByPrimaryKey(OaDataDictionary record);

    /**
     * 分页查询
     *
     * @param dataDictionary
     * @param startTime
     * @param endTime
     * @return
     */
    List<OaDataDictionary> findAll(@Param("dataDictionary")OaDataDictionary dataDictionary,@Param("startTime") String startTime,@Param("endTime") String endTime);

    /**
     * 总行数
     *
     * @param dataDictionary
     * @param startTime
     * @param endTime
     * @return
     */
    Long rowCount(@Param("dataDictionary")OaDataDictionary dataDictionary,@Param("startTime") String startTime,@Param("endTime") String endTime);

    /**
     * id查询所有
     *
     * @param list
     * @return
     */
    List<OaDataDictionary> selectAll(@Param("list")List<Long> list);

    /**
     * 批量删除
     *
     * @param list
     * @return
     */
    int deleteAll(@Param("list")List<Long> list);

    /**
     * 关键字查询
     *
     * @param key
     * @return
     */
    List<OaDataDictionary> findKeyword(@Param("key")String key);
}
